import 'dart:convert';

import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/lecturer_list_page_entity.g.dart';


@JsonSerializable()
class LecturerListPageEntity extends ChoiceBean{
	LecturerListPageEntity();

	factory LecturerListPageEntity.fromJson(Map<String, dynamic> json) => $LecturerListPageEntityFromJson(json);
	String? id;
	String? companyCode;
	String? lecturerName;
	String? lecturerSexDicId;
	String? lecturerSex;
	String? lecturerTypeDicId;
	String? lecturerType;
	String? lecturerProfiles;
	String? lecturerHead;
	int? status;
	int? likeNum;
	bool? isLike;
	String? createBy;
	String? createById;
	String? createDate;
	String? updateBy;
	String? updateById;
	String? updateDate;
	String? deleted;
  /// 是否选中
  bool? isSelected = false;

	Map<String, dynamic> toJson() => $LecturerListPageEntityToJson(this);


  @override
  String toString() {
    return jsonEncode(this);
  }

  @override
  String getId() {
    return id ?? '';
  }

  @override
  bool getIsChecked() {
    return isSelected ?? false;
  }

  @override
  String getShowName() {
    return lecturerName ?? '空';
  }

  @override
  setIsChecked(bool isChecked) {
    isSelected = isChecked;
  }
}
